package cnpm02.j2ee.group3.logic.dao.impl;

import java.util.List;

import javax.ejb.Stateless;
import javax.persistence.Query;

import org.jboss.seam.annotations.AutoCreate;
import org.jboss.seam.annotations.Name;

import cnpm02.j2ee.group3.logic.dao.generic.AbstractEntityDaoImpl;
import cnpm02.j2ee.group3.model.TicketType;

/**
 * Dao implementation for {@link TicketTypeDao}.
 * @author BINH
 * @version 1.0
 * */
@Stateless
@Name("ticketTypeDao")
@AutoCreate
public class TicketTypeDaoImpl extends AbstractEntityDaoImpl<TicketType>
		implements TicketTypeDao {

	@SuppressWarnings("unchecked")
	public List<TicketType> selectAll() {
		Query query = getEntityManager().createQuery(SELECT_ALL_QUERY);
		return query.getResultList();
	}

}
